﻿using Microsoft.EntityFrameworkCore;
using NewRetail.Application.Components.PrintTask.Entity;
using NewRetail.Application.Core.Entity;

namespace NewRetail.Application.Components.PrintTask
{
    public static class PrintTaskExtension
    {
        public static void ConfigurePrintTaskEntities(this ModelBuilder modelBuilder)
        {
            //打印任务表
            var infoBuilder = modelBuilder.Entity<PrintTaskEntity>().ConfigBaseEntity();
            infoBuilder.ToTable("print_task");
            infoBuilder.Property(x => x.receiptNo).IsRequired();
            infoBuilder.Property(x => x.receiptDate).IsRequired();
            infoBuilder.Property(x => x.printNo).IsRequired();
        }
    }
}
